package pojo;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Homework entity. @author MyEclipse Persistence Tools
 */

public class Homework implements java.io.Serializable {

	// Fields

	private String homeworkId;
	private Teacher teacher;
	private Timestamp publishTime;
	private Integer questionNumbers;
	private String state;
	private Timestamp deadLine;
	private Set homeworkDifficulties = new HashSet(0);
	private Set mistakerecords = new HashSet(0);
	private Set homeworkdetails = new HashSet(0);
	private Set finishstatuses = new HashSet(0);

	// Constructors

	/** default constructor */
	public Homework() {
	}

	/** minimal constructor */
	public Homework(String homeworkId, Teacher teacher, Timestamp publishTime,
			Integer questionNumbers, String state) {
		this.homeworkId = homeworkId;
		this.teacher = teacher;
		this.publishTime = publishTime;
		this.questionNumbers = questionNumbers;
		this.state = state;
	}

	/** full constructor */
	public Homework(String homeworkId, Teacher teacher, Timestamp publishTime,
			Integer questionNumbers, String state, Timestamp deadLine,
			Set homeworkDifficulties, Set mistakerecords, Set homeworkdetails,
			Set finishstatuses) {
		this.homeworkId = homeworkId;
		this.teacher = teacher;
		this.publishTime = publishTime;
		this.questionNumbers = questionNumbers;
		this.state = state;
		this.deadLine = deadLine;
		this.homeworkDifficulties = homeworkDifficulties;
		this.mistakerecords = mistakerecords;
		this.homeworkdetails = homeworkdetails;
		this.finishstatuses = finishstatuses;
	}

	// Property accessors

	public String getHomeworkId() {
		return this.homeworkId;
	}

	public void setHomeworkId(String homeworkId) {
		this.homeworkId = homeworkId;
	}

	public Teacher getTeacher() {
		return this.teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	public Timestamp getPublishTime() {
		return this.publishTime;
	}

	public void setPublishTime(Timestamp publishTime) {
		this.publishTime = publishTime;
	}

	public Integer getQuestionNumbers() {
		return this.questionNumbers;
	}

	public void setQuestionNumbers(Integer questionNumbers) {
		this.questionNumbers = questionNumbers;
	}

	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Timestamp getDeadLine() {
		return this.deadLine;
	}

	public void setDeadLine(Timestamp deadLine) {
		this.deadLine = deadLine;
	}

	public Set getHomeworkDifficulties() {
		return this.homeworkDifficulties;
	}

	public void setHomeworkDifficulties(Set homeworkDifficulties) {
		this.homeworkDifficulties = homeworkDifficulties;
	}

	public Set getMistakerecords() {
		return this.mistakerecords;
	}

	public void setMistakerecords(Set mistakerecords) {
		this.mistakerecords = mistakerecords;
	}

	public Set getHomeworkdetails() {
		return this.homeworkdetails;
	}

	public void setHomeworkdetails(Set homeworkdetails) {
		this.homeworkdetails = homeworkdetails;
	}

	public Set getFinishstatuses() {
		return this.finishstatuses;
	}

	public void setFinishstatuses(Set finishstatuses) {
		this.finishstatuses = finishstatuses;
	}

}